import http from '../http'

const board = {
  add(data) {
    return http('/api/board/add', 'post', data)
  },
  delete(data) {
    return http('/api/board/delete', 'post', data)
  },
  update(data) {
    return http('/api/board/update', 'post', data)
  },
  list(data) {
    return http('/api/board/list', 'post', data)
  },
  // 获取周报、日报、月报等
  getReport(data) {
    return http('/api/board/getFinishedList', 'post', data)
  },
  // 根据id获取明细
  getDetailById(id) {
    return http(`/api/board/getDetailById?id=${id}`, 'get')
  }
}

export default board